<template>
  <div class="mod-cms-post">
    <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
       <el-form-item>
        <el-input placeholder="文章标题" clearable></el-input>
      </el-form-item>
       <el-form-item>
        <el-button @click="getDataList()">查询</el-button>
        <el-button v-if="isAuth('cms:post:save')" type="primary">新增</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  data() {
    return {
      dataForm: {}
    };
  },
  components: {},
  activated() {
    // 当被激活的时候触发
    // 在这里我们要去做异步的数据请求
    this.getDataList();
  },
  methods: {
    getDataList() {
      console.log("cms|post|getDataList|");
    }
  }
};
</script>

<style lang="scss">
.mod-cms-post {
}
</style>

